package com.tencent.sr.iris.basic.saas.common.enums;

public enum IrisAuditStatusEnum {
    TO_BE_AUDIT(0, "待审核"),
    UN_COMPLETE(1, "未完成"),
    AUDITING(2, "审核中"),
    AUDIT_REJECTED(3, "审批驳回"),
    AUDIT_PASSED(4, "审核通过");

    private Integer status;

    private String desc;

    IrisAuditStatusEnum(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public Integer getStatus() {
        return status;
    }

    public String getDesc() {
        return desc;
    }

    public static String getByStatus(Integer status) {
        for (IrisAuditStatusEnum auditStatusEnum : IrisAuditStatusEnum.values()) {
            if (auditStatusEnum.getStatus().equals(status)) {
                return auditStatusEnum.getDesc();
            }
        }
        return "";
    }
}
